#ifndef __CSTRING_H
#define __CSTRING_H


#ifdef __cplusplus
extern "C" {
#endif

typedef struct{
	char *str;
	int length;
}CString;

CString *Init_CString(char *str);
void Delete_CString(CString *p);
char *Get_string(CString *p);
int Length(CString *p);
//remove the last character of CString and return it.
char Chomp(CString *cstring);
//Appends a string to a CString.
CString *Append_Chars_To_CString(CString *p,char *str);



#ifdef __cplusplus
}
#endif


#endif
